<p class="Paragraph">FileName: Name of the file, including path, for which to test attributes. If no path specification is given, <span class="T1">SetAttr</span> <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>searches for the file in the current directory. The <help:link Id="66636" Eid="urllocal" xmlns:help="http://openoffice.org/2000/help">URL notation</help:link> can also be used here.</p>
<p class="Paragraph">Attribute: Bit pattern defining the attributes to be set or to be cleared:</p>
<p class="P2">Value</p>
<p class="Paragraph">0 : Normal files.</p>
<p class="Paragraph">1 : Read-only files.</p>
<p class="Paragraph">2 : Hidden files.</p>
<p class="Paragraph">4 : System files.</p>
<p class="Paragraph">32 : File was changed since last backup (Archive bit).</p>
<p class="Paragraph">You can set multiple attributes by combining the respective values with a logic OR statement.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleSetGetAttr</p>
<p class="PropText">On Error Goto ErrorHandler REM Define target for error-handler</p>
<p class="PropText">If Dir("C:\test",16)="" Then MkDir "C:\test"</p>
<p class="PropText">If Dir("C:\test\autoexec.sav")="" THEN Filecopy "c:\autoexec.bat", "c:\test\autoexec.sav"</p>